<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>修改</h1>
    <hr>
    <form action="/updata-mons" method="post">
        <input type="hidden" name="id" value="<%=user.id%>">
        <div>
            姓名: <input type="text" name="name" value="<%=user.name%>">  
        </div>
        <div>
            年龄：<input type="text" name="age" value="<%=user.age%>">
        </div>
        <div>
            性别: <input type="radio" name="sex" value="男" <%= (user.sex == '男')? "checked" : '' %>>男
            <input type="radio" name="sex" value="女" <%= (user.sex == '女')? "checked" : '' %>>女
            <input type="radio" name="sex" value="不男不女" <%= (user.sex == '不男不女')? "checked" : '' %>>不男不女
        </div>
        <div>
            地址: <input type="text" name="address" value="<%=user.address%>">
        </div>
        <div>
            <input type="submit" name="" id="">
        </div>
    </form>
</body>
</html>